class DeviceParams {
  /// 设备名称
  String? name;

  /// 设备编号
  String? code;

  /// 设备存放位置
  String? location;

  /// 设备类型
  DeviceTypeEnum? type;

  /// 所在部门
  int? deptId;

  String? charge;

  /// 设备状态
  DeviceStatusEnum? status;

  DeviceParams({ this.name, this.code, this.location, this.type, this.deptId, this.charge, this.status });
}

enum DeviceTypeEnum {
  all(1, '全部'),
  scrap(2, '主要设备类型一'),
  deactivate(3, '停用'),
  run(4, '正常运行');

  final int value;
  final String label;

  const DeviceTypeEnum(this.value, this.label);
}

enum DeviceStatusEnum {
  all(1, '全部'),
  scrap(2, '报废'),
  deactivate(3, '停用'),
  run(4, '正常运行');

  final int value;
  final String label;

  const DeviceStatusEnum(this.value, this.label);
}
